//
//  BaseButton.m
//  Camera
//
//  Created by aaaaaa on 16/8/9.
//  Copyright © 2016年 葛海一. All rights reserved.
//

#import "BaseButton.h"

@implementation BaseButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)buttonWithType:(UIButtonType)buttonType withTitle:(NSString *)title withBackGroundCorlor:(UIColor *)color withFrame:(CGRect)frame{
    
    BaseButton *btn = [BaseButton buttonWithType:buttonType];
    btn.frame = frame;
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setBackgroundColor:color];
    
    return btn;
    
}

@end
